package com.example.demo.service.impl;import com.example.demo.mapper.StudentMapper;import com.example.demo.model.Student;import com.example.demo.service.StudentService;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Service;/** * @Author Sunjinxu * @Date: 2022/3/31 下午2:20 * @Version 1.0 * @Description TODO */@Servicepublic class StudentServiceImpl implements StudentService {    @Autowired    StudentMapper studentMapper;    @Override    public int add(Student student) {        int add = studentMapper.add(student);        return add;    }    @Override    public int delete(int num) {        return studentMapper.delete(num);    }    @Override    public int update(Student student) {        return studentMapper.update(student);    }    @Override    public Student query(int num) {        return studentMapper.query(num);    }}